<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Order extends Model {

    protected $table = 'orders';
    protected $guarded = [];

    public function user() {
        return $this->belongsTo('App\Models\User', 'user_id');
    }
    public function orderDetail(){
        return $this->hasMany('App\Models\OrderDetail','order_id');
    }
    
    
}
